<template>
    <el-row class="tac">
  <el-col :span="24">
    <el-menu
      default-active="2"
      class="el-menu-vertical-demo"
      @open="handleOpen"
      @close="handleClose"
      router
      >
      <el-submenu index="1">
        <template slot="title">
          <i class="el-icon-user"></i>
          <span>账户管理</span>
        </template>     
          <el-menu-item index="/home">用户管理</el-menu-item>         
      </el-submenu>
      <el-menu-item index="2">
        <i class="el-icon-menu"></i>
        <span slot="title">资产管理</span>
      </el-menu-item>
      <el-menu-item index="3">
        <i class="el-icon-document"></i>
        <span slot="title">生产管理</span>
      </el-menu-item>
      <el-menu-item index="4">
        <i class="el-icon-setting"></i>
        <span slot="title">资讯管理</span>
      </el-menu-item>
    </el-menu>
  </el-col>
</el-row>




</template>
<script>
export default{
data(){
    return{}
},
methods:{
     handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      }
}

}




</script>